package main

import (
	"com.lh.basic/config"
	"com.lh.web.service/router"
	"fmt"
	"github.com/gin-gonic/gin"
)

func main() {
	app := gin.Default()
	opts := config.InitConfig("server.webService")
	app.Use(config.Cors())
	//app.Use(tools.MiddleWare(configs))
	router.Router(app)
	app.Run(fmt.Sprintf("%s:%d", opts.Host, opts.Port))
}
